<template>
  <div class="container">
    <header>
      <van-nav-bar
        left-arrow
        @click-left="$router.push(listURL)">
      </van-nav-bar>
    </header>
    <iframe :src="url"></iframe>
  </div>
</template>

<script>
  var userID = localStorage.getItem('userID')
  export default {
    data() {
      return {
        url: this.$route.query.url,
        listURL: '/engNodeAcpt' + (userID ? '?userID=' + userID : '')
      }
    }
  }
</script>

<style scoped>
  iframe {
    border: none;
    width: 100%;
    height: calc(var(--vh) * 100 - 46px);
  }
</style>